import request from '@/utils/request'

// 查询课程分类列表
export function listType(query) {
  return request({
    url: '/business/kctype/list',
    method: 'get',
    params: query
  })
}
export function alllistKcType(query) {
  return request({
    url: '/business/kctype/allList',
    method: 'get',
    params: query
  })
}



// 查询课程分类详细
export function getType(id) {
  return request({
    url: '/business/kctype/' + id,
    method: 'get'
  })
}

// 新增课程分类
export function addType(data) {
  return request({
    url: '/business/kctype',
    method: 'post',
    data: data
  })
}

// 修改课程分类
export function updateType(data) {
  return request({
    url: '/business/kctype',
    method: 'put',
    data: data
  })
}

// 删除课程分类
export function delType(id) {
  return request({
    url: '/business/kctype/' + id,
    method: 'delete'
  })
}
